#include "Person.h"
#include <iostream>
void Person::setName(const std::string & aName) {
    name = aName;
}

Person::~Person(){
    std::cout << "Person: " << this << " " << name << " is deallocing" << std::endl;
}

const std::string Person::getName(){
    const auto astr = name;
    return astr;
}

void Person::showPersonInfo() {
    std::cout << "my name is " << name << std::endl;
}